I can pass integers and long from my C written DLL to Visual Basic and vice-versa, but the minute I try to get a float or double from my DLL, Windows does it's neat little General Fault Protection Error trick.
Is there something that I am missing, like a compiler option or a header or something?
To clear things up, what I want to do is call my DLL from VB, and have it return a real number. Sounds simple right?
If anyone knows what I am doing wrong please let me know. A million thanks in advance.